const wsMsg = {
  state: {
    wsMsgList: []// ws 消息列表
  },

  mutations: {
    add_msg: (state, wsMsgList) => {
      state.wsMsgList = wsMsgList
    }
  },

  actions: {
    // 添加 ws 消息
    addMsg({ commit }, wsMsgList) {
      commit('add_msg', wsMsgList)
    }
  }
}

export default wsMsg
